const EDUCATION_LIST = [
	"初中",
	"高中",
	"大专",
  "本科",
  "研究生",
  "硕士",
  "博士"
]

export const getEducationList = ({ hasEmpty = true } = {}) => {
  const occupationList = [...EDUCATION_LIST];
  if (hasEmpty) {
    occupationList.push("不限")
  }

  return occupationList
}

export const getEducationValueByIndex = ({ hasEmpty = true, index } = {}) => {
  const occupationList = getEducationList({ hasEmpty });

	const value = occupationList[index];
	return value === '不限' ? "" : value
}